﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DangKyTaiKhoan.aspx.cs" Inherits="WebHousingInfo.DangKyTaiKhoan" %>
<%@ Register Src="~/Controls/Header.ascx" TagName="Head" TagPrefix="Header" %>
<%@ Register Src="~/Controls/MenuFooter.ascx" TagName="MeNuDuoi" TagPrefix="MenuFooter" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Đăng ký tài khoản</title>
</head>
<body>
    <form id="form1" runat="server">
    <div id="uni_wrapper">
        <Header:Head ID="Header" runat="server" />
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <div id="uni_main">
                <div id="main_content">	 
		<div id="tnpp_main_box">
		  <div class="main_box_title">
			<div class="box_title_right">
			  <p class="box_title_left"><span class="recblue">Đăng ký tài khoản</span></p>
			  <div class="tit_blue_bg">
				<p class="tit_blue_left"><span class="tit_blue_right">Bạn đã có tài khoản?&nbsp;&nbsp;&nbsp;
                  <asp:Button ID="btndangnhap" class="tnpp_button_login" CausesValidation="false" 
                        runat="server" Text="Đăng nhập" onclick="btndangnhap_Click1" />
				  </span></p>
			  </div>
			</div>
		  </div>
		  <div class="main_box_content">
			<ul class="ul_regis_acc">
			
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
            
			  <li id="li_Username" class="">
				<div class="box_text"><span class="red_txt">* </span>Tên đăng nhập:</div>
				<div id="input_username_content" class="box_frm">
				  <asp:TextBox ID="txtusername" class="txt_155" MaxLength="50" runat="server"></asp:TextBox>				  
				  <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtusername" ErrorMessage="?">*</asp:RequiredFieldValidator>
                  <asp:Button ID="btncheck" runat="server" CausesValidation="false" 
                        class="btn_check" Text="Kiểm tra" onclick="btncheck_Click" />	
                  <asp:Panel ID="pncheck" Visible="false" runat="server">                    
                      <div style="margin-left:145px; height:15px;">
                        <asp:Label ID="lblresultuser" style="line-height:5px;" Visible="false" runat="server" Text=""></asp:Label>
                      </div>
                  </asp:Panel>
				</div>
			  </li>
			  <li id="li_Password" class="">
				<div class="box_text"><span class="red_txt">* </span>Mật khẩu:</div>
				<div class="box_frm">
                  <asp:TextBox ID="txtpass" MaxLength="64" TextMode="Password" runat="server"></asp:TextBox>
                  <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtpass" ErrorMessage="Mật khẩu từ 8 đến 64 ký tự " 
                    ValidationExpression="^([\S\s]{8,64})$"></asp:RegularExpressionValidator>
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtpass" ErrorMessage="Chưa nhập mật khẩu"></asp:RequiredFieldValidator>                  
				</div>
			  </li>
			  <li id="li_Fullname" class="">
				<div class="box_text"><span class="red_txt">* </span>Họ và tên:</div>
				<div class="box_frm">				  
                  <asp:TextBox ID="txtfullname" runat="server" MaxLength="50" ></asp:TextBox>
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtfullname" ErrorMessage="Họ tên là yêu cầu"></asp:RequiredFieldValidator>
				</div>
			  </li>
			  <li id="li_Birthday" class="">
				<div class="box_text"><span class="red_txt">* </span>Ngày sinh</div>
				<div class="box_frm">
					<asp:DropDownList ID="dldate" Height="18px" Width="60px" runat="server">
                    </asp:DropDownList>&nbsp;-
                    <asp:DropDownList ID="dlmonth" Height="18px" AutoPostBack="true" Width="50px" 
                        runat="server" onselectedindexchanged="dlmonth_SelectedIndexChanged" >
                    </asp:DropDownList>&nbsp;-
                    <asp:DropDownList ID="dlyear" Height="18px" Width="70px" runat="server">
                    </asp:DropDownList> 
				</div>
			  </li>
			  </ContentTemplate>
              </asp:UpdatePanel>
			  <li id="li_Fullname" class="">
				<div class="box_text"><span class="red_txt"></span>Hình đại diện:</div>
				<div class="box_frm">				  
                    <asp:FileUpload ID="FileUpload_avatar" runat="server" />
				</div>
			  </li>
			  <li id="li_Email">
				<div class="box_text"><span class="red_txt">* </span>Email của bạn:</div>
				<div class="box_frm">
                  <asp:TextBox ID="txtemail" runat="server" MaxLength="100" ></asp:TextBox>
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ErrorMessage="Email là yêu cầu" ControlToValidate="txtemail"></asp:RequiredFieldValidator>
                  <asp:RegularExpressionValidator ID="RegularExpressionValidator13" runat="server"
                    ErrorMessage="Email không hợp lệ" ControlToValidate="txtemail" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
				</div>
			  </li>
			  <li id="li_Email">
				<div class="box_text"><span class="red_txt"></span>Nick Yahoo:</div>
				<div class="box_frm">
                  <asp:TextBox ID="txtyahoo" runat="server" MaxLength="50" ></asp:TextBox>
                  <asp:RegularExpressionValidator ID="RegularExpressionValidator14" 
                    runat="server" ErrorMessage="Nick Yahoo không hợp lệ" ValidationExpression="\w+([_.]\w+)*" ControlToValidate="txtyahoo"></asp:RegularExpressionValidator>
				</div>
			  </li>
			  <li id="li_Email">
				<div class="box_text"><span class="red_txt"></span>Nick Skyper:</div>
				<div class="box_frm">
                  <asp:TextBox ID="txtskyper" runat="server" MaxLength="50" ></asp:TextBox>
                  <asp:RegularExpressionValidator ID="RegularExpressionValidator2" 
                    runat="server" ErrorMessage="Nick Skyper không hợp lệ" ValidationExpression="\w+([_.]\w+)*" ControlToValidate="txtskyper"></asp:RegularExpressionValidator>
				</div>
			  </li>
			  <li id="li_Email">
				<div class="box_text"><span class="red_txt"></span>Số điện thoại:</div>
				<div class="box_frm">
                  <asp:TextBox ID="txtphone" runat="server" MaxLength="50" ></asp:TextBox>
                  <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" 
                    ControlToValidate="txtphone" ErrorMessage="Định dạng không đúng" 
                    ValidationExpression="^[\d]+\.?[\d]+$"></asp:RegularExpressionValidator>
				</div>
			  </li>
			  <li id="li_Location" class="">
				<div class="box_text"><span class="red_txt"></span>Tỉnh, thành phố:</div>
				<div class="box_frm">
				    <asp:DropDownList ID="cbcity" runat="server" DataTextField="Value" DataValueField="Key">
                        <asp:ListItem Value="Hà Nội">Hà Nội</asp:ListItem>
                        <asp:ListItem Value="TP HCM">TP HCM</asp:ListItem>
                        <asp:ListItem Value="An Giang">An Giang</asp:ListItem>
                        <asp:ListItem Value="Bắc Cạn">Bắc Cạn</asp:ListItem>
                        <asp:ListItem Value="Bắc Giang">Bắc Giang</asp:ListItem>
                        <asp:ListItem Value="Bạc Liêu">Bạc Liêu</asp:ListItem>
                        <asp:ListItem Value="Bắc Ninh">Bắc Ninh</asp:ListItem>
                        <asp:ListItem Value="Bến Tre">Bến Tre</asp:ListItem>
                        <asp:ListItem Value="Bình Định">Bình Định</asp:ListItem>
                        <asp:ListItem Value="Bình Dương">Bình Dương</asp:ListItem>
                        <asp:ListItem Value="Bình Phước">Bình Phước</asp:ListItem>
                        <asp:ListItem Value="Bình Thuận">Bình Thuận</asp:ListItem>
                        <asp:ListItem Value="BR. Vũng Tàu">BR. Vũng Tàu</asp:ListItem>
                        <asp:ListItem Value="Cà Mau">Cà Mau</asp:ListItem>
                        <asp:ListItem>Cần Thơ</asp:ListItem>
                        <asp:ListItem>Cao Bằng</asp:ListItem>
                        <asp:ListItem>Đà Nẵng</asp:ListItem>
                        <asp:ListItem>Đắc Lắc</asp:ListItem>
                        <asp:ListItem>Đồng Nai</asp:ListItem>
                        <asp:ListItem>Đồng Tháp</asp:ListItem>
                        <asp:ListItem>Gia Lai</asp:ListItem>
                        <asp:ListItem>Hà Giang</asp:ListItem>
                        <asp:ListItem>Hà Nam</asp:ListItem>
                        <asp:ListItem>Hà Tỉnh</asp:ListItem>
                        <asp:ListItem>Hải Dương</asp:ListItem>
                        <asp:ListItem>Hải Phòng</asp:ListItem>
                        <asp:ListItem>Hòa Bình</asp:ListItem>
                        <asp:ListItem>Huế</asp:ListItem>
                        <asp:ListItem>Hưng Yên</asp:ListItem>
                        <asp:ListItem>Khánh Hòa</asp:ListItem>
                        <asp:ListItem>Kiên Giang</asp:ListItem>
                        <asp:ListItem>Kon Tum</asp:ListItem>
                        <asp:ListItem>Lai Châu</asp:ListItem>
                        <asp:ListItem>Lâm Đồng</asp:ListItem>
                        <asp:ListItem>Lạng Sơn</asp:ListItem>
                        <asp:ListItem>Lào Cai</asp:ListItem>
                        <asp:ListItem>Long An</asp:ListItem>
                        <asp:ListItem>Nam Định</asp:ListItem>
                        <asp:ListItem>Nghệ An</asp:ListItem>
                        <asp:ListItem>Ninh Bình</asp:ListItem>
                        <asp:ListItem>Ninh Thuận</asp:ListItem>
                        <asp:ListItem>Phú Thọ</asp:ListItem>
                        <asp:ListItem>Phú Yên</asp:ListItem>
                        <asp:ListItem>Quảng Bình</asp:ListItem>
                        <asp:ListItem>Quảng Nam</asp:ListItem>
                        <asp:ListItem>Quảng Ngãi</asp:ListItem>
                        <asp:ListItem>Quảng Ninh</asp:ListItem>
                        <asp:ListItem>Quảng Trị</asp:ListItem>
                        <asp:ListItem>Sóc Trăng</asp:ListItem>
                        <asp:ListItem>Sơn La</asp:ListItem>
                        <asp:ListItem>Tây Ninh</asp:ListItem>
                        <asp:ListItem>Thái Bình</asp:ListItem>
                        <asp:ListItem>Thái Nguyên</asp:ListItem>
                        <asp:ListItem>Thanh Hóa</asp:ListItem>
                        <asp:ListItem>Tiền Giang</asp:ListItem>
                        <asp:ListItem>Trà Vinh</asp:ListItem>
                        <asp:ListItem>Tuyên Quang</asp:ListItem>
                        <asp:ListItem>Vỉnh Long</asp:ListItem>
                        <asp:ListItem>Vỉnh Phúc</asp:ListItem>
                        <asp:ListItem>Yên Bái</asp:ListItem>
                    </asp:DropDownList>
				</div>
			  </li>
			  <li id="li_Email">
				<div class="box_text"><span class="red_txt"></span>Địa chỉ:</div>
				<div class="box_frm">
                  <asp:TextBox ID="txtdiachi" runat="server" MaxLength="100" ></asp:TextBox>
				</div>
			  </li>
			  <li id="li_Email">
				<div class="box_text"><span class="red_txt"></span>Tên website:</div>
				<div class="box_frm">
                  <asp:TextBox ID="txtwebsite" runat="server" MaxLength="100" ></asp:TextBox>
				</div>
			  </li>
			  <li id="li_Email">
				<div class="box_text"><span class="red_txt">* </span>Câu hỏi quên mật khẩu:</div>
				<div class="box_frm">
                  <asp:DropDownList ID="dlquestion" runat="server" DataTextField="Value" DataValueField="Key">
                  </asp:DropDownList>
				</div>
			  </li>
			  <li id="li_Email">
				<div class="box_text"><span class="red_txt">* </span>Trả lời:</div>
				<div class="box_frm">
                  <asp:TextBox ID="txttraloi" runat="server" MaxLength="200" ></asp:TextBox>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="txttraloi" ErrorMessage="Chưa trả lời câu hỏi"></asp:RequiredFieldValidator>
				</div>
			  </li>			  
			</ul>
			
			<div class="bottom_btn">
			  <div class="btn_cover">			    
                <asp:Button ID="btndangky" CausesValidation="true" class="tnpp_button_login" 
                      runat="server" Text="Tạo tài khoản" onclick="btndangky_Click" />
                <asp:Button ID="btnhuy" CausesValidation="false" class="tnpp_button_login" 
                      runat="server" Text="Hủy bỏ" onclick="btnhuy_Click" />
			  </div>
				<p>(<span class="red_txt">*</span>) Thông tin bắt buộc</p>				
			</div>	
		  </div>
		</div>
		</div>
        </div>
        <MenuFooter:MeNuDuoi ID="MenuFooter" runat="server" />        
    </div>
    </form>
</body>
</html>
